  /**
   * Generate time : 2016-10-15 15:27:43
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.cn.domain;

import com.baosight.iplat4j.util.NumberUtils;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCNCustomInfo 
 * table comment : 销售客户信息 
 */
public class ZMCNCustomInfo extends DaoEPBase {

	private String fdKeyId = " ";		
	private String fdStatus = " ";		/* 状态*/
	private Long fdNo = new Long(0);	/* 编号*/
	private String fdName = " ";		/* 客户名称*/
	private String fdShortName = " ";		/* 客户简称*/
	private String fdAddress = " ";		/* 客户地址*/
	private String fdPhone = " ";		/* 联系方式*/
	private String fdUse = " ";		/* 停用标记*/
	private String fdType=" ";    /*类型：外购、销售*/

	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdStatus");
	eiColumn.setFieldLength(4);	
	eiColumn.setDescName("状态");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdNo");
	eiColumn.setType("N");
	eiColumn.setScaleLength(0);
	eiColumn.setFieldLength(38);
	eiColumn.setDescName("编号");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdName");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("客户名称");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdShortName");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("客户简称");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdAddress");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("客户地址");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPhone");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("联系方式");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdUse");
	eiColumn.setFieldLength(2);	
	eiColumn.setDescName("停用标记");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdType");
	eiColumn.setFieldLength(4);	
	eiColumn.setDescName("类型");
	eiMetadata.addMeta(eiColumn);
	}
	/**
	 * the constructor
	 */
	public ZMCNCustomInfo() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId 
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId 
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	
	/**
	 * get the fdStatus - 状态
	 * @return the fdStatus
	 */
	public String getFdStatus() {
		return this.fdStatus;
	}
	
	/**
	 * set the fdStatus - 状态
	 */
	public void setFdStatus(String fdStatus) {
		this.fdStatus = fdStatus;
	}
	
	/**
	 * get the fdNo - 编号
	 * @return the fdNo
	 */
	public Long getFdNo() {
		return this.fdNo;
	}
	
	/**
	 * set the fdNo - 编号
	 */
	public void setFdNo(Long fdNo) {
		this.fdNo = fdNo;
	}
	
	/**
	 * get the fdName - 客户名称
	 * @return the fdName
	 */
	public String getFdName() {
		return this.fdName;
	}
	
	/**
	 * set the fdName - 客户名称
	 */
	public void setFdName(String fdName) {
		this.fdName = fdName;
	}
	
	/**
	 * get the fdShortName - 客户简称
	 * @return the fdShortName
	 */
	public String getFdShortName() {
		return this.fdShortName;
	}
	
	/**
	 * set the fdShortName - 客户简称
	 */
	public void setFdShortName(String fdShortName) {
		this.fdShortName = fdShortName;
	}
	
	/**
	 * get the fdAddress - 客户地址
	 * @return the fdAddress
	 */
	public String getFdAddress() {
		return this.fdAddress;
	}
	
	/**
	 * set the fdAddress - 客户地址
	 */
	public void setFdAddress(String fdAddress) {
		this.fdAddress = fdAddress;
	}
	
	/**
	 * get the fdPhone - 联系方式
	 * @return the fdPhone
	 */
	public String getFdPhone() {
		return this.fdPhone;
	}
	
	/**
	 * set the fdPhone - 联系方式
	 */
	public void setFdPhone(String fdPhone) {
		this.fdPhone = fdPhone;
	}
	
	/**
	 * get the fdUse - 停用标记
	 * @return the fdUse
	 */
	public String getFdUse() {
		return this.fdUse;
	}
	
	/**
	 * set the fdUse - 停用标记
	 */
	public void setFdUse(String fdUse) {
		this.fdUse = fdUse;
	}
	
	/**
	 * get the fdType - 类型：外购、销售
	 * @return the fdType
	 */
	public String getFdType() {
		return this.fdType;
	}
	
	/**
	 * set the fdType - 类型：外购、销售
	 */
	public void setFdType(String fdType) {
		this.fdType = fdType;
	}
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdStatus")), fdStatus));
		setFdNo(NumberUtils.toLong(StringUtils.toString(map.get("fdNo")), fdNo));
		setFdName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdName")), fdName));
		setFdShortName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdShortName")), fdShortName));
		setFdAddress(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdAddress")), fdAddress));
		setFdPhone(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPhone")), fdPhone));
		setFdUse(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdUse")), fdUse));
		setFdType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdType")), fdType));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdStatus",StringUtils.toString(fdStatus, eiMetadata.getMeta("fdStatus")));	
			map.put("fdNo",StringUtils.toString(fdNo, eiMetadata.getMeta("fdNo")));	
			map.put("fdName",StringUtils.toString(fdName, eiMetadata.getMeta("fdName")));	
			map.put("fdShortName",StringUtils.toString(fdShortName, eiMetadata.getMeta("fdShortName")));	
			map.put("fdAddress",StringUtils.toString(fdAddress, eiMetadata.getMeta("fdAddress")));	
			map.put("fdPhone",StringUtils.toString(fdPhone, eiMetadata.getMeta("fdPhone")));	
			map.put("fdUse",StringUtils.toString(fdUse, eiMetadata.getMeta("fdUse")));	
			map.put("fdType",StringUtils.toString(fdType, eiMetadata.getMeta("fdType")));	
			
		return map;
	
	}
}